import request from "@/utils/request.js";

// 可以和后端代码不那么严丝合缝的对应
// 获取所用用户数据
const basePath = "/registration_type"
// 添加用户
export function insert(data) {
    return request({
        url: basePath,
        method: "post",
        data: data
    });
}

// 修改用户
export function update(data) {
    return request({
        url: basePath,
        method: "put",
        data: data
    });
}
// 删除用户
export function deleteElem(ids) {
    return request({
        url: basePath,
        method: "delete",
        data: ids
    });
}

// 获取分页信息
export function getPage(data) {
    return request({
        url: basePath + "/query",
        method: "post",
        data: data
    });
}

// 获取所有信息
export function getAll() {
    return request({
        url: basePath + "/all",
        method: "get",
    });
}


